<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- v-bing 指令 -->
    <!-- 用于: 动态的设置html的标签属性 -> src/url/title -->
    <!-- 语法: v-bind:属性名="表达式"-->
    <div id="app">
        <!-- 插值表达式不能用在html属性中 -->
        <!-- <img src="{{ imgUrl }}" alt=""> -->
        <img v-bind:src="imgUrl" v-bind:title="msg" alt="">
        <!-- 简写 -->
        <img :src="imgUrl2" :title="msg2" alt="">
    </div>

    <script src="./vue.js"></script>

    <script>
        const app = new Vue({
            el: '#app',
            data: {
                imgUrl: './images/10-01.png',
                msg: "标题",
                imgUrl2: './images/10-02.png',
                msg2: "标题2"
            }
        })
    </script>
</body>
</html>